# -*- python -*-
# Copyright (c) 2011 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

Import('env')

fib_array_nexe = env.ComponentProgram(
                     'fib_array',
                     'fib_array.c',
                     EXTRA_LIBS=['srpc',
                                 'platform',
                                 'gio',
                                 'imc',
                                 'imc_syscalls',
                                 '${PTHREAD_LIBS}',
                                 '${NONIRT_LIBS}'])
node = env.SelUniversalTest(
    'fib_array_test.out',
    fib_array_nexe,
    stdin=env.File('fib_array_test.stdin'),
    stdout_golden=env.File('fib_array_test.stdout')
    )
env.AddNodeToTestSuite(node,
                       ['small_tests', 'sel_ldr_tests'],
                       'run_fib_array_test')



fib_scalar_nexe = env.ComponentProgram(
                      'fib_scalar',
                      'fib_scalar.c',
                      EXTRA_LIBS=['srpc',
                                  'platform',
                                  'gio',
                                  'imc',
                                  'imc_syscalls',
                                  '${PTHREAD_LIBS}',
                                  '${NONIRT_LIBS}'])
node = env.SelUniversalTest(
    'fib_scalar_test.out',
    fib_scalar_nexe,
    stdin=env.File('fib_scalar_test.stdin'),
    stdout_golden=env.File('fib_scalar_test.stdout')
    )
env.AddNodeToTestSuite(node,
                       ['small_tests', 'sel_ldr_tests'],
                       'run_fib_scalar_test')
